package asteroids.model.programs.expression;

import asteroids.model.programs.type.DoubleType;

public class Cos extends Function {

	public Cos(int line, int column, E e) {
		super(line, column, e);
	}

	@Override
	public DoubleType getValue() {
		return new DoubleType(Math.cos(((DoubleType)getExpression().getValue()).getValue()));
	}

}
